package framework.rpc.protocol.register;

import java.util.HashMap;
import java.util.Map;

/**
 * 类似注册中心----本地注册，服务启动时，将需要使用的接口全部注册进来
 *
 * @author ldanniel
 */
public class LocalRegister {
    private static Map<String, Class> map = new HashMap<>();

    public static void register(String interfaceName, Class implClass,String version) {
        map.put(interfaceName, implClass);
        map.put(interfaceName, implClass);
    }

    public static Class get(String interfaceName) {
        return map.get(interfaceName);
    }
}
